class Animal {
    public String name;
    public int age;
    public void eat() {
        System.out.println(name+"正在吃");
    }
}
class Dog extends Animal {
    public String name;
    public String color;

    public void doing() {
        System.out.println("正在旺旺叫");
    }
    public void print() {
        System.out.println(name);
    }
}

public class Test {

    public static void main(String[] args) {
       Dog dog = new Dog();
    }
}
